-- Register Selector Entity
-- Chang Lan, <changlan9@gmail.com>
-- 11/9/2011

library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use work.global_definition.all;

entity regselect is
    port (
        op : in std_ulogic_vector(5 downto 0);
        rx : in std_ulogic_vector(2 downto 0);
        ry : in std_ulogic_vector(2 downto 0);
        rz : in std_ulogic_vector(2 downto 0);

        reg_r1 : out std_ulogic_vector(regfile_address_size-1 downto 0);
        reg_r2 : out std_ulogic_vector(regfile_address_size-1 downto 0);
        reg_w  : out std_ulogic_vector(regfile_address_size-1 downto 0)
        );
end regselect;
